﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace ElfTyping.Animations
{
    public class FireEmblemNormalStanceAnimation : Animation
    {
        public FireEmblemNormalStanceAnimation(string imageFile)
            : base(imageFile, 3, 0.5f)
        {
            Frames = new List<Rectangle>()
            {
                new Rectangle(3, 30, 18, 18),
                new Rectangle(22, 30, 18, 18),
                new Rectangle(42, 30, 18, 18)
            };
        }
    }

    public class FireEmblemFocusStanceAnimation : Animation
    {
        public FireEmblemFocusStanceAnimation(string imageFile)
            : base(imageFile, 3, 0.48f)
        {
            Frames = new List<Rectangle>()
            {
                new Rectangle(2, 83, 22, 22),
                new Rectangle(27, 83, 22, 22),
                new Rectangle(53, 83, 22, 22)
            };
        }
    }

    public class FireEmblemMovingStanceAnimation : Animation
    {
        public FireEmblemMovingStanceAnimation(string imageFile)
            : base(imageFile, 4, 0.25f)
        {
            Frames = new List<Rectangle>()
            {
                new Rectangle(7, 128, 22, 22),
                new Rectangle(39, 128, 22, 22),
                new Rectangle(71, 128, 22, 22),
                new Rectangle(103, 128, 22, 22)
            };

            FlippedHorizontally = true;
        }
    }
}
